﻿@{ 
    Layout = null;
}
@if (false)
{
    <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
      
}
<script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        alert("操作成功！");
        var hdMethodFromType = $("#hdMethodFromType").val();
        switch (hdMethodFromType) {
            case "EDIT":
                {
                    if ($("#hdNodeText").val() != "") {
                        if (parent) {
                            parent.refreshNodeName($("#hdNodeText").val());
                        }
                    }
                    break;
                }

            case "ADD_SAME":
            case "ADD_NEXT":
                {
                    var focusKey = $("#hdFocusKey").val();
                    if (focusKey != "") {
                        if (parent) {
                            parent.refreshLevelNode(focusKey);
                        }
                    }
                    break;
                }
        }
        if ($("#hdRedirectURL").val() != "") {
            window.location.href = $("#hdRedirectURL").val();
        }

    });
</script>
@*转向的URL值*@
@Html.Hidden("hdRedirectURL", ViewData["RedirectURL"])
@*传递的方法*@
@Html.Hidden("hdMethodFromType", ViewData["methodFromType"])
@*节点文本名称*@
@Html.Hidden("hdNodeText", ViewData["nodeText"])
@*节点焦点值*@
@Html.Hidden("hdFocusKey", ViewData["focusKey"])
